package com.sky.mapper;

import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    /**
     * 保存口味
     * @param dishFlavors
     */
    void saveFlavors(List<DishFlavor> dishFlavors);



    /**
     * 根据dishId删除口味信息
     * @param dishId
     */
    void delByDishId(Long dishId);

    /**
     * 根据dishId查询口味
     * @param dishId
     * @return
     */
    List<DishFlavor> findByDishId(Long dishId);
}
